package com.atguigu.f_sleep;

public class Demo {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 1; i <= 60; i++) {
            //让当前线程对象休眠的方法
            Thread.sleep(1000);
            System.out.println("时间过了 " + i + " 秒 ! ");
        }
    }
}
